currentsens 2.2.0
Loading...
Searching...
No Matches
Current Sens Registers Settings

Settings for registers of Current Sens Click driver. More...

Macros

#define CURRENTSENS_NUM_CONVERSIONS   200
 Current Sens default ADC samples number for averaging.
#define CURRENTSENS_ADC_RESOLUTION   0x0FFF
 Current Sens ADC setting.
#define CURRENTSENS_VREF_2V5   2.5
#define CURRENTSENS_VREF_3V3   3.3
#define CURRENTSENS_VREF_5V   5.0
#define CURRENTSENS_TIMEOUT_MS   2000
 Current Sens timeout setting.
#define CURRENTSENS_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE
 Data sample selection.
#define CURRENTSENS_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

Detailed Description

Settings for registers of Current Sens Click driver.

Macro Definition Documentation

◆ CURRENTSENS_ADC_RESOLUTION

#define CURRENTSENS_ADC_RESOLUTION   0x0FFF

Current Sens ADC setting.

Specified settings for ADC of Current Sens Click driver.

◆ CURRENTSENS_NUM_CONVERSIONS

#define CURRENTSENS_NUM_CONVERSIONS   200

Current Sens default ADC samples number for averaging.

Specified default ADC samples number for averaging of Current Sens Click driver.

◆ CURRENTSENS_SET_DATA_SAMPLE_EDGE

#define CURRENTSENS_SET_DATA_SAMPLE_EDGE   SET_SPI_DATA_SAMPLE_EDGE

Data sample selection.

This macro sets data samples for SPI modules.

Note
Available only on Microchip PIC family devices. This macro will set data sampling for all SPI modules on MCU. Can be overwritten with currentsens_init which will set SET_SPI_DATA_SAMPLE_MIDDLE by default on the mapped mikrobus.

◆ CURRENTSENS_SET_DATA_SAMPLE_MIDDLE

#define CURRENTSENS_SET_DATA_SAMPLE_MIDDLE   SET_SPI_DATA_SAMPLE_MIDDLE

◆ CURRENTSENS_TIMEOUT_MS

#define CURRENTSENS_TIMEOUT_MS   2000

Current Sens timeout setting.

Specified setting for timeout of Current Sens Click driver.

◆ CURRENTSENS_VREF_2V5

#define CURRENTSENS_VREF_2V5   2.5

◆ CURRENTSENS_VREF_3V3

#define CURRENTSENS_VREF_3V3   3.3

◆ CURRENTSENS_VREF_5V

#define CURRENTSENS_VREF_5V   5.0